package com.chefu.common.pojo;

import lombok.Getter;

@Getter
public class CfException extends RuntimeException{
    private Integer status;       //状态码
    public CfException(Integer status, String message){
        super(message);
        this.status = status;
    }

    public CfException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
        this.status = exceptionEnum.getStatus();
    }
}
